package net.sunofbeaches.services;

import net.sunofbeaches.pojo.Category;
import net.sunofbeaches.response.ResponseResult;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;


@Service
@Transactional
public interface CategoryService {
    ResponseResult addCategory(Category category);

    ResponseResult getCategory(String categoryId);

    ResponseResult listCategories();

    ResponseResult updateCategory(String categoryId, Category category);

    ResponseResult deleteCategory(String categoryId);
}
